;
layui.define([ "table", "form" ], function(exports) {
	tab = layui.table, tab.render({
		elem : "#LAY-web-list",
		url : layui.setter.base + "merch/payorder/listJson",
		cols : [ [
		{
			field : "batchNo",
			title : "批次号",
			minWidth : 180
		}, {
			field : "totalAmountShow",
			title : "总金额",
			minWidth : 180
		}, {
			field : "totalNumber",
			title : "总笔数",
			minWidth : 120
		}, {
			field : "successNumber",
			title : "成功笔数",
			minWidth : 120
		}, {
			field : "orderStatusShow",
			title : "状态",
			templet : "#buttonTpl",
			minWidth : 100,
			align : "center"
		}, {
			field : "createDateTime",
			title : "创建时间",
			templet : "#buttonTpl",
			minWidth : 180,
			align : "center"
		}, {
			title : "操作",
			minWidth : 150,
			align : "center",
			fixed : "right",
			toolbar : "#table-content-list"
		} ] ],
		page : !0,
		limit : 10,
		limits : [ 10, 15, 20, 25, 30 ],
		text: {none: '暂无相关数据'}
	}), tab.on("tool(LAY-web-list)", function(row) {
		if ("view" === row.event) {
			parent.layer.open({
				type : 2,
				title : "	单据明细",
				content : layui.setter.base + "merch/payorder/searchItem?batchNo=" + row.data.batchNo,
				maxmin : !0,
				area : [ "900px", "600px" ],
				btn : [ "关闭" ]
			});
			return;
		}
		if ("audit" === row.event) {
			parent.layer.open({
				type : 2,
				title : "审核",
				content : layui.setter.base + "merch/payorder/reviewPage?batchNo=" + row.data.batchNo,
				maxmin : !0,
				area : [ '500px', '300px' ],
				btn : [ "确定", "取消" ],
				yes : function(index, layero) {
					// 点击确认触发 iframe 内容中的按钮提交
					layero.find('iframe').contents().find("#layuiadmin-app-form-edit").click();
				}
			});
			return;
		}
	}), exports("merchPayOrder", {})
});